package game;

public class TileRack {
	StringBuffer rack;
	public TileRack(){
		rack = new StringBuffer();
	}
	public void addLetter(char x){
		rack.append(x);
	}
	public void addLetter(char[] x){
		for (int i = 0; i < x.length; i++){
			this.addLetter(x[i]);
		}
	}//this accepts an array of chars, and calls the single char version of itself (polymorphism).
	public String returnString(){
		return rack.toString();
	}
	public void emptyRack(){
		rack.setLength(0);
	}
}
